/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package ecarx.xsf.notificationcenter.binders;

import android.os.RemoteException;

import ecarx.xsf.notificationcenter.manager.NotificationDispatchManager;
import ecarx.xsf.notificationcenter.scenecard.ISceneCardListener;
import ecarx.xsf.notificationcenter.scenecard.ISceneCardListenerV2;
import ecarx.xsf.notificationcenter.scenecard.ISceneCardService;

/**
 * FileName: LauncherControllerProxy.java <br>
 * Description : 智能卡片接口 <br>
 * Create Time: 2020/11/10 10:01 <br>
 * Update Time: 2021/8/4 11:32 <br>
 *
 * @since 1.0.0
 */
public class SceneCardProxy extends ISceneCardService.Stub {

    @Override
    public void addSceneCardListener(ISceneCardListener callback) throws RemoteException {
        NotificationDispatchManager.get().register(callback);
    }

    @Override
    public void removeSceneCardListener(ISceneCardListener callback) throws RemoteException {
        NotificationDispatchManager.get().unregister(callback);
    }

    @Override
    public void addSceneCardListenerV2(ISceneCardListenerV2 callback) throws RemoteException {
        NotificationDispatchManager.get().register(callback);
    }

    @Override
    public void removeSceneCardListenerV2(ISceneCardListenerV2 callback) throws RemoteException {
        NotificationDispatchManager.get().unregister(callback);
    }

    @Override
    public void notifySceneCardStatusChange(int status) throws RemoteException {
        NotificationDispatchManager.get().notifySceneCardStatusChange(status);
    }
}
